//------------------------------------------------------------------------------
// ThanhLNY
//------------------------------------------------------------------------------

using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace VietTrips.Domain.Models
{
    [Table("Tour")]
    public partial class Tour
    {
        public Tour()
        {
            Reviews = new HashSet<Review>();
            Trips = new HashSet<Trip>();
        }

        [Key]
        [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        public int TourId { get; set; }

        public int TourAgencyId { get; set; }

        [Required]
        [StringLength(50)]
        public string TourName { get; set; }

        [Required]
        [StringLength(250)]
        public string Description { get; set; }

        [StringLength(2000)]
        public string FullDescription { get; set; }

        public double Days { get; set; }

        public int? FeaturedImageId { get; set; }

        public DateTime LastModified { get; set; }

        public bool IsDeleted { get; set; }

        public virtual Image Image { get; set; }

        public virtual ICollection<Review> Reviews { get; set; }

        public virtual TourAgency TourAgency { get; set; }

        public virtual ICollection<Trip> Trips { get; set; }
    }
}
